Dispatch
Document ShellThe
Dispatch
method dispatches the specified event to the appropriate part.
ODBoolean Dispatch (inout ODEventData eventData);
eventData
- A platform-specific structure representing an event. On return, the fields of the structure may have been modified. On the Mac OS platform, the structure is defined as a Mac OS event record.
- return value
- kODTrue if the event was handled by a part, or
kODFalse
if the event is not associated with an existing dispatch module (or if the event was not handled).DISCUSSION
The document shell and container applications call this method when an event occurs. This method looks up the dispatch module for the specified event in its dispatch module dictionary and then calls the dispatch module'sDispatch
method. On the Mac OS platform, this method may also be called by parts that handle events in dialog event filter routines.SEE ALSO
TheODEventData
type (page 890).
TheODEventInfo
type (page 891).
TheODDispatchModule::Dispatch
method (page 129).
TheODPart::HandleEvent
method (page 526).
"How User Events Are Handled" on page 188 in OpenDoc Programmer's Guide.
"Event Filters" on page 233 in OpenDoc Programmer's Guide.
"Creating a Dispatch Module" on page 447 in OpenDoc Programmer's Guide.
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help